1950f8fa0f7effa22e67ed3250935dd74447fee6,features/core/src/main/java/org/apache/karaf/features/internal/service/RepositoryImpl.java,RepositoryImpl,getResourceRepositories,#,67
Before Change
public URI[] getResourceRepositories() throws IOException {
load();
URI[] result = new URI[features.getResourceRepository().size()];
for (int i = 0; i < features.getResourceRepository().size(); i++) {
String uri = features.getResourceRepository().get(i);
uri = uri.trim();
result[i] = URI.create(uri);
}
return result;
}
public org.apache.karaf.features.Feature[] getFeatures() throws IOException {
After Change
public URI[] getResourceRepositories() throws IOException {
load();
return features.getResourceRepository().stream().map(URI::create).toArray(URI[]::new);
}
public org.apache.karaf.features.Feature[] getFeatures() throws IOException {